#include<stdio.h>

double ind(double n,double k)
{
	if(k>0)
		return n*ind(n,k-1);
	else if(k==0)
		return 1;
	else
		return 1/ind(n,-k);
}

int main()
{
	double n=0.0,k=0.0;
	scanf("%lf %lf",&n,&k);
	
	double ret=ind(n,k);
	printf("%lf",ret);
	return 0;
}
